<template>
  <div class="admin">
    <el-container>
      <el-header height="70px">
        <admin-head></admin-head>
      </el-header>
      <el-container>
        <el-aside width="250px">
          <admin-nav></admin-nav>
        </el-aside>
        <el-container>
          <el-main>
            <router-view v-slot="{ Component }">
              <keep-alive>
                <component :is="Component" />
              </keep-alive>
            </router-view>
          </el-main>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import AdminNav from './components/AdminNav.vue';
import AdminHead from './components/AdminHead.vue';
export default defineComponent({
  name: 'Admin',
  components: { AdminHead, AdminNav },
});
</script>

<style lang="scss" scoped>
@import '@/assets/css/config.scss';
.el-container {
  min-height: 649px;
  overflow: hidden;
}
.el-header {
  background-color: $themeColor;
  color: white;
  padding: 0 !important;
}
.el-aside {
  // background-color: #777;
}
.el-main {
  background-color: #eee;
}
</style>
